// Copyright (c) 2009 http://grommet.codeplex.com
// This source is subject to the Microsoft Public License.
// See http://www.opensource.org/licenses/ms-pl.html
// All other rights reserved.

using System;

#if MicroFramework
using Microsoft.SPOT;
#endif

namespace Grommet.Net.XBee
{
    public abstract class Info
    {
        public string ExtractString(byte[] value, int startIndex)
        {
            string str = string.Empty;
            for (int i = startIndex; i < value.Length && value[i] != 0; i++)
            {
                str += (char)value[i];
            }
            return str;
        }
    }
}
